package it.sd.pwframework.business.service.impl;

import it.sd.pwframework.business.service.PwServiceService;
import it.sd.pwframework.persistence.common.CommonSession;
import it.sd.pwframework.persistence.model.spider.PWService;

import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("pwserviceService")
public class PwServiceServiceImpl implements PwServiceService {

    protected Logger log = org.slf4j.LoggerFactory.getLogger(this.getClass());
    
    @Autowired
    private CommonSession commonSession;
    
	@Override
	@Transactional(readOnly=false)
	public PWService getService(Long id) throws Exception {
				
		return (PWService)commonSession.findById(PWService.class.getName(), id);
	}
    

	@Override
	@Transactional(readOnly=false)
	public void delete(PWService service) throws Exception {
				

	}

	@Override
	@Transactional(readOnly=false)
	public void save(PWService service) throws Exception {
				
		commonSession.save(service);

	}


	
}
